package cmd

import (
	"github.com/spf13/cobra"
	"time"
)

func Reload() *cobra.Command{
	var reCmd = &cobra.Command{
		Use:     "reload",
		Version: "v0.0.1",
		Short:   UsageGenConf,
		Long:    UsageGenConf,
		Run: func(cmd *cobra.Command, args []string){
			Stop().Execute()
			time.Sleep(1000 * 5)
			Run().Execute()
		},
	}
	return reCmd
}